<@admin.header title="修改测评师">
<@common.validate/>
<!--
<script type="text/javascript">
    $(document).ready(function(){
		
		$('#mainForm').validate();
			
    });
</script>-->

</@admin.header>
<body>
    <div class="place">
        <span>位置：</span>
        <ul class="placeul">
            <li>
                <a href="${base}/right.do">首页</a>
            </li>
            <li>
                <a href="list.do">测评师管理</a>
            </li>
            <li>
                <a href="#">修改测评师</a>
            </li>
        </ul>
    </div>
	
	<form action="upload.do" method="post" id="mainForm" enctype="multipart/form-data">
		<input type="hidden" name="bean.id" value="${entity.id}" />
	    <div class="formbody">
	        <div class="formtitle">
	            <span>修改测评师</span>
	        </div>
	        <ul class="forminfo">
	            <li>
	                <label class="field">
	                    用户名称
	                </label>
	                <input name="bean.name" type="text" class="dfinput" validate="{name:true}" title="姓名不能为空" value="${entity.name!''}"/><i>&nbsp;</i>
	            </li>
				<li>
	                <label class="field">
	                   头衔
	                </label>
	                 <@nerve.r_evaluator value="${entity.title!''}" name="bean.title" class="dfinput"/>
	            </li>
				<li>
	                <label class="field">
	                   简介
	                </label>
	                <textarea name="bean.information" class="textinput" style="width:325px;margin:8px auto;">${entity.information!''}</textarea>
	            </li>	
			<li>
				<label class="field">
	          头像展示
	                </label>
                <span><img src="${base}${entity.header!''}" /></span>
            </li>			
	          <li>
	                <label class="field">
	                   	 头像地址
	                </label>
	                <input name="upload_file" type="file" class="dfinput" 
					validate="{required:true,accept:'jpg|png|bmp|gif|jpeg', messages:{accept:'只支持图片文件'}}" 
						title="图片文件不能为空"/><i>&nbsp;</i>
						<!--当上面的file为空时！就会将下面的从数据库提取的数据传过去-->
					<input name="bean.header" type="hidden" value="${entity.header!''}"/>
					<!--<input name="bean.header" type="text" class="dfinput" style="display:none" value="${entity.header!''}"/>-->	
	            </li>
	            <li>
	                <label class="field">
	                    &nbsp;
	                </label>
	                <input type="submit" class="btn" value="确认保存"/>
	            </li>
	        </ul>
	    </div>
	</form>
	<script>
	$(document).ready(function(){
		//判断是否需要提示错误信息, 信息来源 Controller 中的redirectA.addFlashAttribute("error", e.getMessage());
		<#if error??>
		App.toast.error("${error}");
		</#if>
	});
</script>
</body>
</html>